//
// Created by 李光辉 on 2020/12/31.
//

MPI_Aint a_addr,b_ddr,n_addr;;

MPI_Get_address(&a,&a_addr);
array_of_displacements[0]=0;
MPI_Get_address(&b,&b_addr);
array_of_displacements[1]=b_addr-a_addr;
MPI_Get_address(&n,&n_addr);
array_of_displacements[2]=n_addr-a_addr;